/* 通用样式 */
:root {
  --primary-color: #4a90e2;
  --primary-hover: #357abf;
  --secondary-color: #f2f2f2;
  --error-color: #e74c3c;
  --success-color: #2ecc71;
  --text-color: #333;
  --text-light: #666;
  --border-color: #ddd;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --background-color: #f7f9fc;
}

/* 认证页面容器 */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f7f9fc;
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 400px;
  padding: 30px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-color);
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* 按钮样式 */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 10px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary:disabled {
  background-color: var(--border-color);
  cursor: not-allowed;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: #e5e5e5;
}

/* 错误消息 */
.error-message {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--error-color);
  padding: 10px 12px;
  margin-bottom: 20px;
  color: var(--error-color);
  border-radius: 4px;
}

/* 成功消息 */
.success-message {
  background-color: rgba(46, 204, 113, 0.1);
  border-left: 4px solid var(--success-color);
  padding: 10px 12px;
  margin-bottom: 20px;
  color: var(--success-color);
  border-radius: 4px;
}

/* 仪表盘用户信息 */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header h1 {
  margin: 0;
  font-size: 28px;
  color: var(--text-color);
}

.dashboard-header-buttons {
  display: flex;
  gap: 10px;
}

.dashboard-content {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.dashboard-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 22px;
}

.user-info {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-top: 10px;
}

.dashboard-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-disabled {
  background-color: var(--text-light) !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.btn-disabled:hover {
  background-color: var(--text-light) !important;
  transform: none !important;
}

.user-info p {
  margin: 10px 0;
  font-size: 16px;
}

/* API诊断工具样式 */
.api-diagnostic-tool {
  margin-top: 30px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 6px;
}

.api-diagnostic-tool h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 10px;
}

.diagnostic-result {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
}

.diagnostic-result.success {
  background-color: rgba(46, 204, 113, 0.1);
  border-left: 4px solid var(--success-color);
}

.diagnostic-result.error {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--error-color);
}

.result-message {
  font-weight: 500;
  margin-bottom: 10px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  padding: 0;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--primary-hover);
}

.diagnostic-details {
  margin-top: 10px;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
}

hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

/* 用户信息设置页面样式 */
.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid var(--border-color);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-input {
  display: none;
}

.file-button {
  width: 100%;
  max-width: 150px;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Dashboard 头像样式 */
.dashboard-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  margin-bottom: 15px;
  display: inline-block;
}

.dashboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.user-info-with-avatar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.user-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.user-details {
  flex: 1;
}

/* 主页样式 */
.home-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--background-color);
}

.home-header {
  background-color: white;
  box-shadow: var(--box-shadow);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-header h1 {
  margin: 0;
  color: var(--primary-color);
  font-size: 24px;
}

.login-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-button:hover {
  background-color: var(--primary-hover);
}

.user-button {
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
}

.user-button:hover {
  background-color: #e0e0e0;
}

.title-link {
  color: var(--primary-color);
}

.articles-container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
}

.articles-container h2 {
  margin-bottom: 20px;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.loading {
  text-align: center;
  padding: 30px;
  font-size: 18px;
  color: var(--text-light);
}

.no-articles {
  text-align: center;
  padding: 30px;
  font-size: 16px;
  color: var(--text-light);
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.articles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.article-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.article-title {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-color);
  font-size: 20px;
  flex: 1;
}

.delete-button {
  background-color: transparent;
  color: var(--error-color);
  border: 1px solid var(--error-color);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  padding: 0;
  margin-left: 10px;
}

.delete-button:hover {
  background-color: var(--error-color);
  color: white;
}

.clickable {
  cursor: pointer;
  transition: color 0.2s;
}

.clickable:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.article-description {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
  color: var(--text-light);
}

.article-time {
  display: inline-block;
}

/* 文章详情页样式 */
.article-detail-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--background-color);
}

.article-detail-header {
  background-color: white;
  box-shadow: var(--box-shadow);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-detail-header h1 {
  margin: 0;
  color: var(--primary-color);
  font-size: 24px;
}

.back-button {
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #e0e0e0;
}

.article-detail-content {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
}

.article-full {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 30px;
}

.article-full-title {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-color);
  font-size: 26px;
}

.article-author {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 500;
}

.article-full-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.article-full-description {
  background-color: var(--secondary-color);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.article-full-body {
  line-height: 1.8;
  color: var(--text-color);
  font-size: 16px;
}

.no-article {
  text-align: center;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  font-size: 18px;
  color: var(--text-light);
}

/* 搜索功能样式 */
.search-container {
  margin: 20px 0;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.search-type-toggle {
  display: flex;
  margin-bottom: 15px;
}

.search-type-toggle button {
  padding: 8px 16px;
  margin-right: 10px;
  border: 1px solid var(--primary-color);
  background-color: white;
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.search-type-toggle button.active {
  background-color: var(--primary-color);
  color: white;
}

.search-input-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  min-width: 200px;
}

.search-button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: var(--primary-hover);
}

.search-button:disabled {
  background-color: var(--text-light);
  cursor: not-allowed;
}

.clear-search-button {
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.clear-search-button:hover {
  background-color: #e5e5e5;
}

.search-results-container {
  margin-top: 20px;
}

.no-results {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

/* 用户列表样式 */
.users-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.user-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--box-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.user-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-name {
  color: var(--primary-color);
  margin-top: 0;
  cursor: pointer;
}

.user-bio {
  color: var(--text-light);
}

/* 发布文章按钮样式 */
.create-article-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.create-article-button:hover {
  background-color: var(--primary-hover);
  transform: scale(1.1);
}

/* 发布文章页面样式 */
.create-article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0;
}

.back-button {
  padding: 8px 16px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  background-color: transparent;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s;
}

.back-button:hover {
  background-color: var(--primary-color);
  color: white;
}

.article-form {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.required {
  color: var(--error-color);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-textarea {
  resize: vertical;
}

.description-textarea {
  min-height: 80px;
}

.content-textarea {
  min-height: 300px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

.cancel-button {
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.cancel-button:hover {
  background-color: #e0e0e0;
}

.submit-button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: var(--primary-hover);
}

.submit-button:disabled {
  background-color: var(--text-light);
  cursor: not-allowed;
}

/* 管理员面板样式 */
.btn-admin {
  background-color: #8e44ad;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 10px 5px;
}

.btn-admin:hover {
  background-color: #732d91;
  transform: translateY(-2px);
}

.admin-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.admin-panel-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 1200px;
  height: 80%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  background-color: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.admin-panel-header h2 {
  margin: 0;
  color: var(--text-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

.admin-panel-sidebar {
  background-color: #2c3e50;
  width: 200px;
  min-height: 100%;
  padding: 20px 0;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  background: none;
  border: none;
  color: #bdc3c7;
  padding: 15px 25px;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.nav-item.active {
  background-color: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border-left-color: #3498db;
}

.admin-panel {
  position: fixed;
  top: 50px;
  left: 50px;
  right: 50px;
  bottom: 50px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.admin-panel-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* 管理组件通用样式 */
.article-management,
.member-management {
  flex: 1;
  padding: 30px;
  background-color: #f8f9fa;
  overflow-y: auto;
}

.management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.management-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.5rem;
}

.refresh-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.refresh-btn:hover {
  background-color: var(--primary-hover);
}

/* 表格样式 */
.articles-table,
.applications-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  background-color: #34495e;
  color: white;
  font-weight: 500;
  padding: 15px;
  gap: 15px;
}

.applications-table .table-header {
  grid-template-columns: 1fr 2fr 1fr 1fr 1.5fr;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  padding: 15px;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
  align-items: center;
}

.applications-table .table-row {
  grid-template-columns: 1fr 2fr 1fr 1fr 1.5fr;
}

.table-row:hover {
  background-color: #f8f9fa;
}

.table-row:last-child {
  border-bottom: none;
}

/* 状态徽章 */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.status-badge.active {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-badge.approved {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status-badge.rejected {
  background-color: #f8d7da;
  color: #721c24;
}

.status-badge.unknown {
  background-color: #e2e3e5;
  color: #383d41;
}

/* 操作按钮 */
.col-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.view-btn {
  background-color: #17a2b8;
  color: white;
}

.view-btn:hover {
  background-color: #138496;
}

.delete-btn {
  background-color: #dc3545;
  color: white;
}

.delete-btn:hover {
  background-color: #c82333;
}

.approve-btn {
  background-color: #28a745;
  color: white;
}

.approve-btn:hover {
  background-color: #218838;
}

.reject-btn {
  background-color: #ffc107;
  color: #212529;
}

.reject-btn:hover {
  background-color: #e0a800;
}

.action-disabled {
  color: var(--text-light);
  font-size: 0.8rem;
  font-style: italic;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.page-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.page-btn:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.page-btn:disabled {
  background-color: var(--text-light);
  cursor: not-allowed;
}

.page-info {
  color: var(--text-color);
  font-weight: 500;
}

/* 空状态样式 */
.no-articles,
.no-applications {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 1.1rem;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-color);
  font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .admin-panel {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  
  .admin-panel-content {
    flex-direction: column;
  }
  
  .admin-panel-sidebar {
    width: 100%;
    min-height: auto;
  }
  
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  .col-actions {
    justify-content: flex-start;
  }
}
